package br.com.sgi.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.sgi.dao.AuthorityDao;
import br.com.sgi.model.Authority;
import br.com.sgi.service.AuthorityService;
@Service("authorityService")
public class AuthorityServiceImpl implements AuthorityService {

	@Autowired
	private AuthorityDao authorityDao;
	
	@Override
	public List<Authority> buscarTodasAuthority() {
		
		return authorityDao.findAll();
	}

}
